<%@ page import="top.xuwuqiang.study.webdemo.dao.TbComputerDAO" %><%--
  Created by IntelliJ IDEA.
  User: 17505
  Date: 2024/6/3
  Time: 12:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除电脑</title>
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
String sid = request.getParameter("id");
Integer id = Integer.parseInt(sid);
    TbComputerDAO.delete(id);


%>
要删除的id
<%=sid%>
<script>
    alert("删除成功")
    location.href = "list.jsp"
</script>


</body>
</html>
